<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>内训线索池(总经理端)</title>
    <link rel="icon" href="favicon.ico" type="images/ico">
    <meta name="author" content="dc">
    <link rel="stylesheet" type="text/css" href="/css/materialdesignicons.min.css">
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css"/>
    <link rel="stylesheet" type="text/css" href="/css/animate.min.css">
    <link rel="stylesheet" type="text/css" href="/css/style.min.css">
    <link href="/js/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="/js/jquery-confirm/jquery-confirm.min.css"/>
    <link rel="stylesheet" href="/css/bootstrapValidator.min.css" />
    <!--时间选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css"/>
    <!--日期选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datepicker/bootstrap-datepicker3.min.css"/>
    <link rel="stylesheet" href="/css/skin.css"/>
    <link rel="stylesheet" type="text/css" href="/css/daterangepicker.css"/>
    <!-- 多选下拉 -->
    <link rel="stylesheet" href="/css/bootstrap-multiselect.css" type="text/css"/>
    <link rel="stylesheet" href="/css/bootstrap-select.css" type="text/css"/>
    <link rel="stylesheet" href="/css/finance/payment-record.css">
    <!--自定义css-->
    <link rel="stylesheet" href="/css/trainingManager/internalTrainingCluePool.css"/>
</head>

<body>
<div>
    <div class="container-fluid p-t-15">
        <div class="row">
            <div class="col-sm-12">
                <div class="card">
                    <div class="card-header">
                        <h1>内训线索池</h1>
                    </div>
                    <div class="card-body">
                        <div class="row content-action">
                            <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                <!-- 全部 本周 本月 本年 -->
                                <div class="time-search pull-left">
                                    <input type="hidden" id="dateType" name="dateType"/>
                                    <div class="all active-second" onclick="selectTime(this,'all')">全部</div>
                                    <div class="year" onclick="selectTime(this,'lastMonth')">上月</div>
                                    <div class="month" onclick="selectTime(this,'thisMonth')">本月</div>
                                    <div class="week"  onclick="selectTime(this,'thisWeek')">本周</div>
                                </div>
                            </div>
                            <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                <div class="pull-right">
                                    <div class="min-search pull-left">
                                        <input class="form-control" type="text" placeholder="请输入客户名称"
                                               id="customerName" name="customerName">
                                        <button class="btn btn-primary" type="button" onclick="searchTrainingList('basicSearch')">
                                            <i class="mdi mdi-magnify"></i><span>搜索</span>
                                        </button>
                                    </div>
                                    <button class="btn btn-default btn-senior" data-toggle="collapse"
                                            data-target="#filterContentNew" aria-expanded="false"
                                            aria-controls="filterContentNew">
                                        <i class="mdi mdi-sort-variant"></i>高级筛选
                                    </button>
                                </div>
                            </div>
                        </div>
                        <div class="collapse filter-content" id="filterContentNew">
                            <div class="row">

                                <div class="form-group col-lg-4 col-md-4 col-sm-6 col-xs-12">
                                    <label for="companySelect">所属分公司</label>
                                    <div>
                                        <select id="companySelect" name="companyName" class="form-control" data-live-search="true">
                                            <option value="">请选择</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group col-lg-4 col-md-4 col-sm-6 col-xs-12">
                                    <label for="userSelect">所有人</label>
                                    <div>
                                        <select id="userSelect" name="userName" class="form-control" data-live-search="true">
                                            <option value="">请选择</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group col-lg-4 col-md-4 col-sm-6 col-xs-12">
                                    <label class="control-label" for="createTmStart">创建时间</label>
                                    <div class="form-content input-group">
                                        <input type="text" id="createTmStart" class="form-control search-time date-input"
                                               placeholder="起">
                                        <span class="input-group-addon">-</span>
                                        <input type="text" id="createTmEnd" class="form-control search-time date-input"
                                               placeholder="止">
                                    </div>
                                </div>

                                <!--
                                <div class="form-group col-lg-4 col-md-4 col-sm-6 col-xs-12">
                                    <label for="internalCompanySelect">内训公司</label>
                                    <div>
                                        <select id="internalCompanySelect" name="internalCompanySelect" class="form-control" data-live-search="true">
                                            <option value="1">请选择</option>
                                        </select>
                                    </div>
                                </div>
                                -->
                                <div class="form-group col-lg-4 col-md-4 col-sm-6 col-xs-12">
                                    <label for="trainingChargeNameSelect">内训所有人</label>
                                    <div>
                                        <select id="trainingChargeNameSelect" name="trainingChargeNameSelect" class="form-control" data-live-search="true">
                                            <option value="">请选择</option>
                                        </select>
                                    </div>
                                </div>


                                <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12 btn-box">
                                    <label class="control-label">&nbsp;</label>
                                    <div class="text-right">
                                        <button class="btn btn-link" onclick="clearAllData()">重置</button>
                                        <button class="btn btn-primary" type="button" onclick="searchTrainingList('seniorSearch')">
                                            <i class="mdi mdi-magnify"></i><span>搜索</span></button>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <table id="trainingTable"></table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!--分配-->
<input type="hidden" id="distributionId">
<div  id="distributionModal" class="modal fade" tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
        <div class="modal-content" >
            <div class="modal-header modal-link-flex">
                <h4 class="pull-left">线索分配</h4>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true" style="font-size:24px">&times;</span>
                </button>
            </div>
            <form class="distribution-form" >
                <input type="hidden" id="trainingId">
                <div class="modal-body modal-body-link" style="padding: 20px 150px;">
                    <div class="row">
                        <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 form-group">
                            <label class="control-label label-required" >选择业务员</label>

                            <select id="salesman" name="salesman" class="form-control form-btn" data-live-search="true">
                            </select>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    <button type="button" class="btn btn-primary link-sure" onclick="distributionSure()">确定</button>
                </div>
            </form>
        </div>
    </div>
</div>
</body>

<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/bootstrapValidator.min.js"></script>
<script type="text/javascript" src="/js/perfect-scrollbar.min.js"></script>
<!--标签插件-->
<script src="/js/jquery-tags-input/jquery.tagsinput.min.js"></script>
<script type="text/javascript" src="/js/main.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table-zh-CN.min.js"></script>
<script type="text/javascript" src="/js/popper.min.js"></script>
<script type="text/javascript" src="/js/jquery.cookie.min.js"></script>
<script src="/js/jquery-confirm/jquery-confirm.min.js"></script>
<script src="/js/crm/common/city.js"></script>
<script src="/js/crm/common/common.js"></script>
<!--时间选择插件-->
<script src="/js/bootstrap-datetimepicker/moment.min.js"></script>
<script src="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="/js/bootstrap-datetimepicker/locale/zh-cn.js"></script>
<!--标签插件-->
<script type="text/javascript" src="/js/bootstrap-tagsinput/bootstrap-tagsinput.js"></script>
<!--消息提醒-->
<script type="text/javascript" src="/js/bootstrap-notify.min.js"></script>
<script type="text/javascript" src="/js/crm/common/lightyear.js"></script>
<!--时间选择插件-->
<script src="/js/bootstrap-datetimepicker/moment.min.js"></script>
<script src="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="/js/bootstrap-datetimepicker/locale/zh-cn.js"></script>
<script type="text/javascript" src="/js/crm/common/dataRangePicker.min.js"></script>
<!--日期选择插件-->
<script src="/js/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script src="/js/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<!-- 多选框下拉 -->
<script type="text/javascript" src="/js/bootstrap-select.js"></script>
<script type="text/javascript" src="/js/bootstrap.lyear.dropdowntree.min.js"></script>
<script src="/js/crm/common/common.js"></script>
<!-- 子页面公用js -->
<script src="/js/crm/common/pageCommon.js"></script>
<!--公司、人员下拉JS-->
<script src="/js/crm/common/companyUserSelect.js"></script>
<!--自定义js-->
<script src="/js/crm/trainingManager/internalTrainingCluePool.js"></script>
</html>